#pragma once	

#include <glm/glm.hpp>

#include <vector>
using std::vector;
	
	class TesselCube
	{		
	public:
		void init();
		void morph();

		int getFaceCount();
		void setMorphPos(int faceIdx, float t);
		Vec3f getVertexColor( int idx );

	private:
		glm::vec3 cube(int side,float s, float t);

		static const int dim1=11;
		static const int dim2=11;

		vector< float > faceMorphPositions;
		vector<vector<vector<glm::vec3>>> vertices;
		vector<vector<vector<glm::vec3>>> normals;
		vector<vector<vector<glm::vec3>>> colors;
	};